<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <title>管理后台</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <!-- 新 Bootstrap 核心 CSS 文件 -->
        <link rel="stylesheet" type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        
        <!-- 可选的Bootstrap主题文件（一般不用引入） -->
        <link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

        <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
        <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>

        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
        <link href="Public/admin/css/dashboard.css" rel="stylesheet">

        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.10.1/bootstrap-table.min.css">

        <!-- Latest compiled and minified JavaScript -->
        <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.10.1/bootstrap-table.min.js"></script>

        <!-- Latest compiled and minified Locales -->
        <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.10.1/locale/bootstrap-table-zh-CN.min.js"></script>
        
        <script src="Public/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
        <script src="Public/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
        <link href="Public/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
        
        <script src="Public/bootstrap-datepicker/js/bootstrap-table-export.min.js"></script>
        <script src="Public/js/tableExport.js"></script>
        
        <script src="Public/bootstrap-datepicker/js/bootstrap-table-filter-control.min.js"></script>
    </head>
    <body>
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">管理后台</a>
                </div>
                <include file="./Public/admin/navbar.html" keywords="1" />

            </div>
        </nav>

        <div class="container-fluid">
            <div class="row">
                <include file="./Public/admin/menu.html" keywords="2" />
                <!--正式内容开始-->
                <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main ">


                    <h2 class="sub-header">送礼列表</h2>

                    <table id="table"></table>


                    <!--page-->
                </div>
                <!--正式内容结束-->
            </div>
        </div>




    </body>

    <script>
        $('#table').bootstrapTable({
            url: '?m=Center&c=Admin&a=UserGiftList',
            sidePagination: 'client',
            silentSort: true,
            pagination: true,
            pageSize: 20,
            search: true,
            showExport: true,
            filterControl: true,
//    clickToSelect:true,
            columns: [{
                    field: 'id',
                    title: 'ID',
                    sortable: true,
//        checkbox:true
                },{
                    field: 'f_name',
                    title: '送出者',
                    sortable: true,
//        checkbox:true
                }, {
                    field: 'f_id',
                    title: '送出者ID',
                    sortable: true,
                }, {
                    field: 't_name',
                    title: '接收者'
                }, {
                    field: 't_id',
                    title: '接收者ID'
                }, {
                    field: 'create_time',
                    title: '送出时间',
                    sortable: true,
                }, {
                    field: 'describe',
                    title: '礼物名称',
                    sortable: true
                }, {
                    field: 'price',
                    title: '礼物价格(麦子)',
                    sortable: true,
                } ]
        });

        

    </script>
</html>
